/* 引入页面 */

/* 登录 */  /* 一级路由 */
import Login from '../views/login/Login';
/* 首页 */
import Home from '../views/home/Home';

/* 二级路由 */

/* 试题管理 */
import AddQuestions from '../views/home/questions/AddQuestions';
import ClassifyQuestions from '../views/home/questions/ClassifyQuestions';
import ViewQuestion from '../views/home/questions/ViewQuestion';
import QuestionDetails from '../views/home/questions/QuestionDetails';

/* 用户管理 */
import AddConsumer from '../views/home/consumer/AddConsumer';
import ShowConsumer from '../views/home/consumer/ShowConsumer';

/* 考试管理 */
import AddPaper from '../views/home/papers/AddPaper';
import PaperList from '../views/home/papers/PaperList';
import PaperDetail from '../views/home/papers/PaperDetail';

/* 班级管理 */
import ClassManager from '../views/home/manager/ClassManager';
import RoomManager from '../views/home/manager/RoomManager';
import StudentManager from '../views/home/manager/StudentManager';

/* 阅卷管理 */
import MarkingDetail from '../views/home/marking/MarkingDetail';
import MarkingList from '../views/home/marking/MarkingList';
import MarkingStudentList from '../views/home/marking/MarkingStudentList';


/* 路由表 */
const routes = [
    /* 默认登录页面 */
    {
        path: '/',
        redirect: '/login'
    },
    /* 登录 */
    {
        path: '/login',
        component: Login
    },
    /* 主页 */
    {
        path: '/home',
        component: Home,
        redirect:'/home/addQuestions',
        children: [
            /* 试题管理 添加试题 */
            {
                path: '/home/addQuestions',
                component: AddQuestions
            },
            /* 试题分类 */
            {
                path: '/home/classifyQuestions',
                component: ClassifyQuestions
            },
            /* 查看试题 */
            {
                path: '/home/viewQuestion',
                component: ViewQuestion
            },
            /* 试题详情 */
            {
                path: '/home/questionDetails',
                component: QuestionDetails
            },
            /* 用户管理 添加用户 */
            {
                path: '/home/addConsumer',
                component: AddConsumer
            },
            /* 用户展示 */
            {
                path: '/home/showConsumer',
                component: ShowConsumer
            },
            /* 考试管理 添加考试 */
            {
                path: '/home/addPaper',
                component: AddPaper
            },
            /* 试卷列表 */
            {
                path: '/home/paperList',
                component: PaperList
            },
            /* 考试详情 */
            {
                path: '/home/paperDetail',
                component: PaperDetail
            },
            /* 班级管理 班级管理 */
            {
                path: '/home/classManager',
                component: ClassManager
            },
            /* 教室管理 */
            {
                path: '/home/roomManager',
                component: RoomManager
            },
            /* 学生管理 */
            {
                path: '/home/studentManager',
                component: StudentManager
            },
            /* 阅卷管理 批卷详情 */
            {
                path: '/home/markingDetail',
                component: MarkingDetail
            },
            /* 待批班级 */
            {
                path: '/home/markingList',
                component: MarkingList
            },
            /* 学生试卷列表 */
            {
                path: '/home/markingStudentList',
                component: MarkingStudentList
            }
        ]
    }
]

/* 导出 */
export default routes;


/* export default {
    routes:[
         默认登录页面
        {
            path: '/',
            redirect: '/login'
        },
         登录
        {
            path: '/login',
            component: Login
        },
         主页
        {
            path: '/home',
            component: Home,
            children: [
                 试题管理
                {
                    path: '/home/questions',
                    component: Questions
                },
                 用户管理
                {
                    path: '/home/user',
                    component: User
                },
                 考试管理
                {
                    path: '/home/exam',
                    component: Exam
                },
                 班级管理
                {
                    path: '/home/grade',
                    component: Grade
                },
                 阅卷管理
                {
                    path: '/home/papers',
                    component: Papers
                }
            ]
        }
    ]
} */